package com.xu.modules.controller;

import com.xu.common.domain.MyResult;
import com.xu.modules.service.StationService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 站点信息 前端控制器
 * </p>
 *
 * @author xu
 * @since 2022-07-27
 */
@RestController
@RequestMapping("/station")
@RequiredArgsConstructor
public class StationController {

    private final StationService stationService;

    @GetMapping("/selectStation")
    public MyResult selectStation(){
        return MyResult.ok(stationService.selectStation());
    }
}
